package com.cmb.abs.orders.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 订单服务API
 *
 * @author shiyunlai
 *
 */
@Controller("order")
public class OrdersController {

    /**
     * 下订单
     * @param order
     * @return
     */
    @PostMapping
    public String order(Object order){
        return "orderId";
    }

    /**
     * 根据订单号查订单信息
     * @param orderId
     * @return
     */
    @GetMapping("/{orderId}")
    public Object queryOrderDigest( @PathVariable  String orderId){
        return null ;
    }

    /**
     * 根据订单号查订单详情信息
     * @param orderId
     * @return
     */
    @GetMapping("/detail/{orderId}")
    public Object queryOrderDetail( @PathVariable  String orderId){
        return null ;
    }
}
